import request from "@/utils/request";

// 获得门店城市分页
export function getStoreCity(query) {
  return request({
    url: "/store/city/page",
    method: "get",
    params: query,
  });
}

// 创建门店城市
export function CreateStoreCity(data) {
  return request({
    url: "/store/city/create",
    method: "post",
    data: data,
  });
}

// 更新门店城市
export function UpdateStoreCity(data) {
  return request({
    url: "/store/city/update",
    method: "put",
    data: data,
  });
}

// 获得门店城市
export function getStoreCityInfo(query) {
  return request({
    url: "/store/city/get",
    method: "get",
    params: query,
  });
}

// 删除门店城市
export function DeleteStoreCity(query) {
    return request({
      url: "/store/city/delete",
      method: "delete",
      params: query,
    });
  }